
project(MainWindow LANGUAGES CXX C)







find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core  Widgets)


find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core  Widgets)


set(INC_LIST 
	
		"include/singleapplication.h"
	  
	  
	  
	  )

message(STATUS "[${PROJECT_NAME}-INC_LIST:] ${INC_LIST}")

set(SRC_LIST 
	"src/main.cpp"
	"src/singleapplication.cpp"
	
	
	
	)


message(STATUS "[${PROJECT_NAME}-SRC_LIST:] ${SRC_LIST}")

set(RES_LIST 
	
	)

message(STATUS "[${PROJECT_NAME}-RES_LIST:] ${RES_LIST}")

add_executable(${PROJECT_NAME}  ${INC_LIST}  ${SRC_LIST} ${RES_LIST})

target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Widgets)

target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)



#输出文件路径
include(OutPutDirConfig)

include(LoadC++Config)

